package com.project.bean;

import java.time.LocalDate;

public class ProcessBean {
    //进度id
    private  int id;
    //员工对象
    private  EmployeeBean emBean;
    //项目对象
    private  ProjectBean project;
    //开始时间
    private LocalDate startDate=LocalDate.now();
    //结束时间
    private String endDate="未完成";

//    private  String endDateString;

//    public  String getEndDateString(){
//        if (endDate==null){
//            return "未完成";
//        }
//        return  endDate.toString();
//    }
//



    public ProcessBean(EmployeeBean emBean, ProjectBean project, LocalDate startDate, String endDate) {
        this.emBean = emBean;
        this.project = project;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    public ProcessBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public EmployeeBean getEmBean() {
        return emBean;
    }

    public void setEmBean(EmployeeBean emBean) {
        this.emBean = emBean;
    }

    public ProjectBean getProject() {
        return project;
    }

    public void setProject(ProjectBean project) {
        this.project = project;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
